package com.groupbuying.customer.service;

import com.groupbuying.customer.domain.CustomerInvitationCodeDO;

import java.util.List;
import java.util.Map;

/**
 * 邀请码
 * 
 * @author wenguoqiang
 * @email 17081@mengtaigroup.com
 * @date 2019-01-11 09:20:59
 */
public interface CustomerInvitationCodeService {
	
	CustomerInvitationCodeDO get(String uuid);
	
	List<CustomerInvitationCodeDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(CustomerInvitationCodeDO invitationCode);
	
	int update(CustomerInvitationCodeDO invitationCode);
	
	int remove(String uuid);
	
	int batchRemove(String[] uuids);
	/**
	 * 绑定会员和邀请码之间的关系，记录日志
	 * @param useCustomerUuid 邀请码使用者uuid
	 * @param invitationCode 邀请码
	 * @param customerName 会员名称
	 */
	public void saveCustomerCodeRelation(String useCustomerUuid,String customerName,String invitationCode);


	/**
	 * 通过邀请码获取邀请码model
	 * @param invitationCode 邀请码
	 * @return model 邀请码实体
	 */
	public CustomerInvitationCodeDO getByInvitationCode(String invitationCode);
}
